package com.tangguo.vshop.web;
/**
 * 相应结果
 * @author doonly
 *
 */
public class ResponseResult {
	private int code;
	private String description;
	
	public static ResponseResult ok(String message){
		return new ResponseResult(200,message);
	}
	
	public static ResponseResult error(String message){
		return new ResponseResult(500, message);
	}
	
	public static ResponseResult status(int code,String message){
		return new ResponseResult(code, message);
	}
	
	public ResponseResult(int code, String description) {
		super();
		this.code = code;
		this.description = description;
	}


	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	
}
